Skip to content

Seed a lab job for the MongoDB of each native server - #230

Merged
Skyfay merged 1 commit into
devfrom
Skyfay/lab-native-mongodb
Nov 24, 2026
Merged

Skyfay merged 1 commit into
devfrom
Skyfay/lab-native-mongodb

Conversation

@Skyfay

@Skyfay Skyfay commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Problem

pnpm lab:provision ubuntu installs MongoDB 8 on the native server, and the seed adds it as a source in SSH mode. No lab job used that source, though. It is the only MongoDB the lab reaches over SSH, since the SSH twins of the Docker lab are MySQL, MariaDB, PostgreSQL and Redis. So pnpm lab:check --run tested the connection but never ran mongodump through SSH.

Changes

  • lab/src/seed/jobs.ts: each native server gets a third paused job, Lab <host> MongoDB to S3, encrypted with the lab key.
  • docs/developer-guide/reference/dev-lab.md: the native server section names the jobs the seed adds.
  • Changelog fragment under Tests.

Testing

  • pnpm lab:seed in a fresh workspace from dev created Lab ubuntu MongoDB to S3. The existing jobs were kept.
  • Ran that job once through the real runner against dbackup-ubuntu-01: Success in 13s. The log shows mongodump dumping inventory and shop on the server, then encryption and the upload to Lab S3.
  • pnpm validate passes.

The native server already gets a MongoDB source in SSH mode, but no job used it. It is the only
MongoDB the lab reaches over SSH, so lab:check --run never ran mongodump through SSH.
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Skyfay
Skyfay merged commit 3d99bcf into dev Nov 24, 2026
21 checks passed

This branch was previously deployed

1 inactive deployment
e2e — 9c796533 Deployed Nov 24, 2026 by Skyfay via Approve #169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant